<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base href="/">
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<style>
table th{
    color:white ;
    background-color: rgb(93, 213, 200) ;
    width: 150px ;
    height: 50px ;
    font-size: 20px;
}
table td a{
    text-decoration: none ;
}
table th,table td{
    text-align: center ;
}
*{
    padding: 0;
    margin: 0;
}
.title{
    text-align: center;
}
#div-bar{
    position:absolute;
    margin-top: 45px;
}
#bar li{
    width: 105px;
    height: 40px;
    margin-top: 25px;
    line-height: 40px;
    text-align: center;
    list-style: none;
}
#bar li:hover{
    background-color: rgb(93, 213, 200);
}
#bar li a{
    color: black;
    text-decoration: none;
}
#father{
    width: 1250px;
    height: 100%;
    position: absolute;
    margin-left: 105px;
    border: 1px ;
    border-left:2px solid rgb(241, 241, 241);
}
#son{
    background-color: rgb(251, 251, 251);
    height: 200%;
}
#son form{
    padding-top: 10px;
    padding-left: 20px;
}
#son form button{
    background-color:  rgb(93, 213, 200);
    height: 30px;
    width: 50px;
    border-radius: 5px;
}
#son form input{
    height: 30px;
    border-radius: 5px;
}
#son form select{
    border-radius: 5px;
    height: 20px;
    margin-left: 5px;
}
#zi {
    position: absolute;
    margin-left: 120px;
    margin-top: 100px;
}
</style>
<body>
<div id="div-bar">
<ul id="bar">
    <li><a href="http://127.0.0.1:8000/index1/shop">商品管理</a> </li>
    <li><a href="http://127.0.0.1:8000/index1/stock">库存管理</a></li>
    <li><a href="http://127.0.0.1:8000/index1/sales">销售数据</a></li>
    <li><a href="http://127.0.0.1:8000/index1/color">颜色数据</a> </li>
    <li><a href="http://127.0.0.1:8000/index1/size">尺码数据</a></li>
    <li><a href="http://127.0.0.1:8000/index1/new_shop">新品追踪</a> </li>
    <li><a href="http://127.0.0.1:8000/index1/yonghu">用户管理</a></li>
</ul>
</div>
<div id="father">
    <div style="border-bottom:2px solid rgb(241, 241, 241);height: 50px">
    <h1 class="title">销量分析</h1>
    </div>
    <div id="son">
 </div>
</div>
<div id="zi">
    <div class="panel panel-default">
        <div id="collapseTwo" class="panel-collapse collapse">
			<div class="panel-body">
                {% load static %}
				<img width="1200px" height="500px" src="{% static '/images/num.png' %}" alt="" >
			</div>
		</div>
		<div class="panel-heading">
        <table border="1">
    <tr>
    <th>款式编码</th>
        {% for gg in date %}
            <th>{{gg|date:"Y-m-d"}}</th>
        {% endfor %}
    </tr>
    {% for line in datalist %}
    <tr>
        <td>{{line.number}}</td>
        {% for sales in line.sales %}
            <td>{{sales.sales_1}}</td>
        {% endfor %}
    </tr>
    {% endfor %}
</table>
</div>
</div>
</div>
</body>
</html>